package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author grq
 * @email grq@gmail.com
 * @date 2021-05-08 21:29:59
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    /**
     * 找到完整路径
     * [父路径/子路径]
     *
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

